package com.jctrip.hotel.source.model.CnBooking.req;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author henry
 * @Date 2023/7/2 15:53
 * @Description
 */
@Data
public class QueryHotelReq extends BaseRequest {

    @JacksonXmlElementWrapper(localName = "SearchConditions")
    @JacksonXmlProperty(localName = "SearchConditions")
    private SearchConditions searchConditions;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SearchConditions {
        @JacksonXmlProperty(localName = "CountryId")
        private String countryId;
        @JacksonXmlProperty(localName = "ProvinceId")
        private String provinceId;
        @JacksonXmlProperty(localName = "CityId")
        private String cityId;
        @JacksonXmlProperty(localName = "Lang")
        private String lang;
        @JacksonXmlProperty(localName = "Version")
        private String version;
        @JacksonXmlProperty(localName = "HotelId")
        private String hotelId;
    }
}
